﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;


namespace Pibby.Core.Feeds
{
    public class Feed
    {
		#region Constructors
		
        public Feed()
        {
			this.Items = new ItemCollection();
        }

		public Feed(IList<Item> items)
		{
			this.Items = new ItemCollection(items);
		}

        #endregion

		public override string ToString()
		{
			return string.Format(System.Globalization.CultureInfo.CurrentUICulture, 
									"{0} updated {1}", 
									this.Title,
									this.PublicationDate.ToShortDateString());
		}

        #region Properties

		public ItemCollection Items
		{
			get;
			private set;
		}

		public string Title
		{
			get;
			set;
		}

		public Uri Link
		{
			get;
			set;
		}

		public string Description
		{
			get;
			set;
		}

		public string Copyright
		{
			get;
			set;
		}

		public DateTime PublicationDate
		{
			get;
			set;
		}

		public Uri ImageUrl
		{
			get;
			set;
		}

		public int Version
		{
			get;
			set;
		}

		#endregion

    }
}
